xen.git
19 years ago[XEND] Apply the domain cpumask fully to every vcpu in the domain.
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:56:59 +0000 (10:56 +0100)]
[XEND] Apply the domain cpumask fully to every vcpu in the domain.

Apply the domain cpumask to each vcpu rather than mapping vcpus to
cpus in the list.  This is more inline with the comments for the
cpus parameter and also allows the credit scheduler to balance
vcpus within the domain cpumask.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
19 years agoRemove another external-to-libxc user of xc_dom0_op().
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:47:26 +0000 (10:47 +0100)]
Remove another external-to-libxc user of xc_dom0_op().
Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[VMX] Fix vmxassist for booting Vista.
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:45:05 +0000 (10:45 +0100)]
[VMX] Fix vmxassist for booting Vista.

This patch fixes 2 vmxassist bugs to boot Vista:
1) When switching from VM86_REAL_TO_PROTECTED to VM86_PROTECTED,
protected_mode() sets return eip to switch_to_protected_mode and
segments to vmxassist's. But in later set_mode(), it still consides
these segments are guest's (Bios at this time) and use its gdt table
to calculate address(), which results in segment limitation fault. 2) In
current vmxassist, when entering VM86_PROTECTED_TO_REAL, we need to
decode every instruction manually until we catch instructions like
jmpl to reset cs to really return to real mode. Vista boot manager uses
more instructions.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[VMX] Fix VMX ap boot.
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:43:43 +0000 (10:43 +0100)]
[VMX] Fix VMX ap boot.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[POWERPC] Update .hgignore
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:38:59 +0000 (10:38 +0100)]
[POWERPC] Update .hgignore
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years agoMerge with xenppc-unstable-merge.hg
kfraser@localhost.localdomain [Tue, 15 Aug 2006 09:30:19 +0000 (10:30 +0100)]
Merge with xenppc-unstable-merge.hg

19 years agoAdd a series file to order the patches in patches/linux-<version>
Ian.Campbell@xensource.com [Tue, 15 Aug 2006 09:06:13 +0000 (10:06 +0100)]
Add a series file to order the patches in patches/linux-<version>

The initial ordering is the same as produced by the previous shell
globbing method.

The series file is a simple list of patch files relative to the
patches/linux-<version>/ directory. We do not support comments,
trailing directives (e.g. "-pN") or blank lines. Apart from these
restrictions the series file should be compatible with patch queue
management tools such as quilt.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[POWERPC] Support console=comX option for Xen console.
Hollis Blanchard [Mon, 14 Aug 2006 20:22:22 +0000 (15:22 -0500)]
[POWERPC] Support console=comX option for Xen console.
Let Xen/PPC support the console=comX option that Xen/x86 uses, so one
need simply supply CMDLINE="console=com2" on the make invocation to get
proper use of the physical serial port on a JS21.

We do this by pruning all serial devices from the device tree, and then
initializing both com1 and com2 (like arch/x86/setup.c does).

Note that `setenv direct-serial? true; nvupdate' should in theory help
with this, but it does not work at present, and will only be supported
in some future version of SLOF.  Regardless, it is useful to support the
console=comX option, since there will always be environments where it is
difficult to get access to the firmware console.

Tested on JS20 and JS21 blades.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[IA64] Fix IA64 build.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 17:38:28 +0000 (18:38 +0100)]
[IA64] Fix IA64 build.

This patch gets ia64 building again on xen-unstable.hg due to the
addition of the uint64_t type in public/arch-ia64.h.  I also cleaned
up directly including this file versus public/xen.h as ia64 seems to be
the only arch using it directly.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[HVM] Fix roms.h to depend on acpi data.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:57:37 +0000 (17:57 +0100)]
[HVM] Fix roms.h to depend on acpi data.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[VMXASSIST] Fix linker script to define start/end section labels
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:56:59 +0000 (17:56 +0100)]
[VMXASSIST] Fix linker script to define start/end section labels
in the usual idiomatic way. This avoids some BSS symbols being
defined oustide of range _sbss/_ebss.

Issue raised by Xiaowei Yang from Intel.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPick up SMBIOS entry point in the ROMBIOS.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:38:23 +0000 (17:38 +0100)]
Pick up SMBIOS entry point in the ROMBIOS.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years agoAdd code to generate SMBIOS tables to hvmloader.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:37:07 +0000 (17:37 +0100)]
Add code to generate SMBIOS tables to hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years agoMake room in e820map for SMBIOS tables.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:29:11 +0000 (17:29 +0100)]
Make room in e820map for SMBIOS tables.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years agoAdd utilities needed for SMBIOS generation to hvmloader.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 16:28:25 +0000 (17:28 +0100)]
Add utilities needed for SMBIOS generation to hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years ago[HVMLOADER] Include xen.h for __HYPERVISOR* constants.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 15:41:20 +0000 (16:41 +0100)]
[HVMLOADER] Include xen.h for __HYPERVISOR* constants.

Signed-off-by: Andrew D. BAll <aball@us.ibm.com>
19 years ago[LIBXC] Remove unused xc_evtchn_status().
kfraser@localhost.localdomain [Mon, 14 Aug 2006 15:39:35 +0000 (16:39 +0100)]
[LIBXC] Remove unused xc_evtchn_status().

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[LINUX] Mark /dev/mem regions as VM_PFNMAP.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 15:35:49 +0000 (16:35 +0100)]
[LINUX] Mark /dev/mem regions as VM_PFNMAP.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Oney 'nosmp' and 'max_cpus=' command line options.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 15:12:43 +0000 (16:12 +0100)]
[LINUX] Oney 'nosmp' and 'max_cpus=' command line options.
Based on a patch from Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Fix an __init that should be an __exit in loopback driver.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 14:26:37 +0000 (15:26 +0100)]
[NET] back: Fix an __init that should be an __exit in loopback driver.

This was pointed out by the newer build system used in 2.6.18-rc4.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX][ Fix x86/64 entry.S to use paravirtualized sti/cli properly.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 14:24:59 +0000 (15:24 +0100)]
[LINUX][ Fix x86/64 entry.S to use paravirtualized sti/cli properly.

This fixes
- one instance of using XEN_BLOCK_EVENTS where XEN_UNBLOCK_EVENTS was
  meant
- four instances of left-over cli-s that should have been replaced
  with XEN_BLOCK_EVENTS
- one instance of slightly wrong placement (without resulting in ill
  behavior, but needlessly making the diff to native more complex)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] grant tables: update pair of entries using a union to ensure endian neutrality.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 14:17:42 +0000 (15:17 +0100)]
[XEN] grant tables: update pair of entries using a union to ensure endian neutrality.

The first two members of a grant entry are updated as a combined pair.
The following patch uses a union so updates can happen in an endian neutral fashion.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
19 years ago[POWERPC] memory cleanup (phase 2), destroy (et. al) now work
Jimi Xenidis [Mon, 14 Aug 2006 13:53:46 +0000 (09:53 -0400)]
[POWERPC] memory cleanup (phase 2), destroy (et. al) now work

The patch fixes the following problems:
  - Fix initializing the heaps so we can Link anywhere < RMA.  We not
    link xen at 4MiB, which is way saner.
  - We track and allocate pages (especially RMA) based on order.
  - free domain memory as a resource not as domain
  - clarify "order" arithmetic
  - update stale def of fix IS_XEN_HEAP_FRAME()

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[LINUX] Provide a handy macro for detrmining if we are domain0.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 13:44:31 +0000 (14:44 +0100)]
[LINUX] Provide a handy macro for detrmining if we are domain0.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENBUS] Avoid direct use of xen_start_info. It's unevailable when
kfraser@localhost.localdomain [Mon, 14 Aug 2006 13:17:26 +0000 (14:17 +0100)]
[XENBUS] Avoid direct use of xen_start_info. It's unevailable when
building as a separate driver for an HVM guest.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] linux: Kill the WARN_ON() calls for checksum fixups.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 12:55:17 +0000 (13:55 +0100)]
[NET] linux: Kill the WARN_ON() calls for checksum fixups.

This changeset is from upstream Linux.  We need it so Xen users
using NAT are not unnecessarily alarmed by these WARN_ON errors
especially since they're not in a position to do anything about
it.  Original changelog:

        [NET]: Kill the WARN_ON() calls for checksum fixups.

        We have a more complete solution in the works, involving
        the seperation of CHECKSUM_HW on input vs. output, and
        having netfilter properly do incremental checksums.

        But that is a very involved patch and is thus 2.6.19
        material.

        What we have now is infinitely better than the past,
        wherein all TSO packets were dropped due to corrupt
        checksums as soon at the NAT module was loaded.  At
        least now, the checksums do get fixed up, it just
        isn't the cleanest nor most optimal solution.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[LINUX] Split useful bits of page.h into new header maddr.h.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 12:54:10 +0000 (13:54 +0100)]
[LINUX] Split useful bits of page.h into new header maddr.h.

Split the bits of page.h which are needed by PV-on-HVM drivers out
into a separate header file, so that it's a bit easier to get the xenolinux
machine address functions when compiled against a native kernel.

Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][LINUX] Add a header file with wrappers for hvm_op hypercall.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 10:35:57 +0000 (11:35 +0100)]
[HVM][LINUX] Add a header file with wrappers for hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[HVM] Add stubs to Linux for the new hvm_op hypercall.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 10:33:50 +0000 (11:33 +0100)]
[HVM] Add stubs to Linux for the new hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[NET] back: Tidy up and remove communications via references to global structures.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 10:32:24 +0000 (11:32 +0100)]
[NET] back: Tidy up and remove communications via references to global structures.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[HVM] More info when failing to emulate instruction group 1.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 10:18:37 +0000 (11:18 +0100)]
[HVM] More info when failing to emulate instruction group 1.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Remove sync_pagetable_state(). No longer needed.
kfraser@localhost.localdomain [Mon, 14 Aug 2006 09:58:02 +0000 (10:58 +0100)]
[XEN] Remove sync_pagetable_state(). No longer needed.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add some missing put_page()s to __gnttab_copy.
ssmith@weybridge.uk.xensource.com [Mon, 14 Aug 2006 09:47:59 +0000 (10:47 +0100)]
[XEN] Add some missing put_page()s to __gnttab_copy.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years ago[XEN] Add a missing access check to __gnttab_copy.
ssmith@weybridge.uk.xensource.com [Mon, 14 Aug 2006 09:45:45 +0000 (10:45 +0100)]
[XEN] Add a missing access check to __gnttab_copy.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years ago[POWERPC] memory cleanup
Jimi Xenidis [Sun, 13 Aug 2006 23:19:37 +0000 (19:19 -0400)]
[POWERPC] memory cleanup

The following changes have been made:
  - htab is allocated by "order" using RMA size, soon it will be
    assigned memory.
  - keep track of RMA in terms of its allocated page struct and order
  - free htab and RMA memory in arch_domain_destroy()
  - get rid of PTEG FULL message, everyone thinks its a bug

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[POWERPC] need a real definition for gnttab_log_dirty()
Jimi Xenidis [Sun, 13 Aug 2006 18:43:50 +0000 (14:43 -0400)]
[POWERPC] need a real definition for gnttab_log_dirty()

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[XEN] Explicitly include domain_page.h for map_domain_page() and fix a
kaf24@localhost.localdomain [Sun, 13 Aug 2006 18:10:57 +0000 (19:10 +0100)]
[XEN] Explicitly include domain_page.h for map_domain_page() and fix a
warning about arithmetic on 'void *' pointers.
Based on a patch from Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Use gnttab_clear_flag() in new grant-table copy operation.
kaf24@localhost.localdomain [Sun, 13 Aug 2006 18:00:19 +0000 (19:00 +0100)]
[XEN] Use gnttab_clear_flag() in new grant-table copy operation.
From: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Clean up e820 definitions. Define shared set in hvm public dir.
kaf24@localhost.localdomain [Sun, 13 Aug 2006 16:47:59 +0000 (17:47 +0100)]
[XEN] Clean up e820 definitions. Define shared set in hvm public dir.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] HVMOP_get_param return parameter value within the provided parameter struct,
kaf24@firebug.cl.cam.ac.uk [Sun, 13 Aug 2006 08:44:07 +0000 (09:44 +0100)]
[HVM] HVMOP_get_param return parameter value within the provided parameter struct,
not as a direct return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add a warning about changeable size of shared_info structure.
kaf24@localhost.localdomain [Sat, 12 Aug 2006 15:18:08 +0000 (16:18 +0100)]
[XEN] Add a warning about changeable size of shared_info structure.

sizeof(shared_info_t) can change even in compatible hypervisor
versions.
Add a clear warning about this, and fix the few places relying on it.
In addition, add some padding to arch_shared_info, to allow future
additions to the structure without breaking known offsets of members
following it in the shared info.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XM-TEST] Fix network tests for -route and -nat
kaf24@localhost.localdomain [Sat, 12 Aug 2006 14:58:52 +0000 (15:58 +0100)]
[XM-TEST] Fix network tests for -route and -nat

vif-nat and vif-route need to know domU ethX IP addresses in order to set
up the appropriate routes.The new network test infrastructure is not
providing the IP address on the vif line in /tmp/xm-test.conf; adding
it turns out to be a one-liner.

Tested with xm-test running with -bridge, -route, and -nat network
scripts.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
19 years ago[NET] front: Restore 16 bytes of reservation
kaf24@localhost.localdomain [Sat, 12 Aug 2006 14:56:00 +0000 (15:56 +0100)]
[NET] front: Restore 16 bytes of reservation

By replacing dev_alloc_skb with alloc_skb we need to do the 16-byte
reservation ourselves.  Also, it's unnecessary to align the size
when calling alloc_skb since the alignment is an implementation
detail of alloc_skb and it already takes care of it for us.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[LINUX][XENBUS] Wait for devices to connect when frontend driver is loaded as a module.
kaf24@localhost.localdomain [Sat, 12 Aug 2006 14:50:25 +0000 (15:50 +0100)]
[LINUX][XENBUS] Wait for devices to connect when frontend driver is loaded as a module.

Thsi fixes problems where a driver is loaded from a script, and the
following parts of the script depend on devices having connected
by the time the modprobe/insmod returns.

Based on a tested patch from Rik van Riel at Red Hat.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoNew xm uptime command.
emellor@leeni.uk.xensource.com [Sat, 12 Aug 2006 11:25:42 +0000 (12:25 +0100)]
New xm uptime command.

From Alex Brett <alex.brett@xensource.com>

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[POWERPC] start-cpu has no return code
Jimi Xenidis [Fri, 11 Aug 2006 17:30:48 +0000 (13:30 -0400)]
[POWERPC] start-cpu has no return code

According to this document:

 PowerPC Processor binding to: IEEE 1275-1994
 Standard for Boot (Initialization, Configuration) Firmware
 Revision: 2.1 (Approved Version)
 Date: November 6, 1996

The start-cpu client interface has the following signature:

 start-cpu
  IN: nodeid, pc, arg
  OUT: none

This patch reflects that, and makes us stop seeing a bogus OF_FAILURE if
we do actually check the return code of of_start_cpu.  Tested on JS20
and JS21 blades.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[IA64] Add two extra empty files and add a comment to every empty
kfraser@localhost.localdomain [Fri, 11 Aug 2006 17:09:13 +0000 (18:09 +0100)]
[IA64] Add two extra empty files and add a comment to every empty
source file so that they can be handled by patch/diff.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Remove batched writable pagetable logic.
kfraser@localhost.localdomain [Fri, 11 Aug 2006 15:07:22 +0000 (16:07 +0100)]
[XEN] Remove batched writable pagetable logic.

Benchmarks show it provides little or no benefit (except
on synthetic benchmarks). Also it is complicated and
likely to hinder efforts to reduce lockign granularity.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Do not allocate unnecessary page-sized main data area
kfraser@localhost.localdomain [Fri, 11 Aug 2006 13:22:54 +0000 (14:22 +0100)]
[NET] front: Do not allocate unnecessary page-sized main data area
for receive skbuffs. The bulk data is stored in fragments.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix bug in spurious pagefault detection which could
kfraser@localhost.localdomain [Thu, 10 Aug 2006 14:51:38 +0000 (15:51 +0100)]
[XEN] Fix bug in spurious pagefault detection which could
be exploited by unprivileged guests. Thanks to Matt Yourst
for finding this and providing the patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Remove unused apic_enabled field from hvm_info_table.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 14:45:47 +0000 (15:45 +0100)]
[HVM] Remove unused apic_enabled field from hvm_info_table.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRevert inadvertent code change from "replace tabs with spaces" changeset.
emellor@leeni.uk.xensource.com [Thu, 10 Aug 2006 13:29:04 +0000 (14:29 +0100)]
Revert inadvertent code change from "replace tabs with spaces" changeset.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Add a new type of grant copy operation.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 10:54:15 +0000 (11:54 +0100)]
[XEN] Add a new type of grant copy operation.
Based on an original patch from Rolf Neugebauer at Intel.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd support for sending event channel interrupts to HVM guests.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 10:36:27 +0000 (11:36 +0100)]
Add support for sending event channel interrupts to HVM guests.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[LIBXC] clean specified files instead of wildcarding
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:55:54 +0000 (10:55 +0100)]
[LIBXC] clean specified files instead of wildcarding
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[LIBXC] replace tabs with spaces
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:52:46 +0000 (10:52 +0100)]
[LIBXC] replace tabs with spaces
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[HVM] Fix some IOAPIC and LAPIC device model bugs.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:47:37 +0000 (10:47 +0100)]
[HVM] Fix some IOAPIC and LAPIC device model bugs.

Fix some boundary checking errors.
Fix the confusion using variables 'level' and 'trig_mode'.
Also fix some other misc mistakes and do some cleanup.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years ago[HVM] Rmove unused field pae_enabled from hvm_info_table.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:45:10 +0000 (10:45 +0100)]
[HVM] Rmove unused field pae_enabled from hvm_info_table.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[MINIOS] A first step to re-architecture mini-os for a port to ia64.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:43:20 +0000 (10:43 +0100)]
[MINIOS] A first step to re-architecture mini-os for a port to ia64.
Create architecture specific directories below mini-os for sources
and below mini-os/include for headers.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[CONSOLE] Always specify CON_ENABLED in Linux ocnsole driver.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:39:58 +0000 (10:39 +0100)]
[CONSOLE] Always specify CON_ENABLED in Linux ocnsole driver.

I cannot think of any circumstance that the Xen console device would
not have CON_ENABLED.  With out this, DomUs that panic() before the
init process has started (and maybe even after) do not get output hi
priority log_levels (like panic()) from LOG_BUF().

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
19 years agoFix 2 issues when creating HVM guests:
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:37:15 +0000 (10:37 +0100)]
Fix 2 issues when creating HVM guests:
 1) xend can't start due to xend-config.sxp
 2) qemu dm option vncunused should be effective only
    when vnc is turned on.

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[POWERPC] enable shadow mode
Jimi Xenidis [Wed, 9 Aug 2006 22:53:00 +0000 (18:53 -0400)]
[POWERPC] enable shadow mode

This should have been enabled right from the begining.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[qemu patches] Update patches for changeset 11048:27bef4f3c1d3.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 20:34:27 +0000 (21:34 +0100)]
[qemu patches] Update patches for changeset 11048:27bef4f3c1d3.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Move acpi to devfn 2, so that it matches the fadt.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 20:33:59 +0000 (21:33 +0100)]
[qemu] Move acpi to devfn 2, so that it matches the fadt.

Based on feedback from: Wang, Winston L <winston.l.wang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches for changesets 11045:bd11c4855c5d and 11046:8a615d28759e.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 19:08:20 +0000 (20:08 +0100)]
[qemu patches] Update patches for changesets 11045:bd11c4855c5d and 11046:8a615d28759e.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] HVM acpi port init update.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 19:07:01 +0000 (20:07 +0100)]
[qemu] HVM acpi port init update.
Removed the acpi port depency on USB exist.

Based on a patch from: Winston Wang <winston.l.wang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Disable qemu's acpi support.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 18:57:03 +0000 (19:57 +0100)]
[qemu] Disable qemu's acpi support.

Based on a patch from: Wang, Winston L <winston.l.wang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMerge with xen-ia64-unstable.
kfraser@localhost.localdomain [Wed, 9 Aug 2006 17:15:27 +0000 (18:15 +0100)]
Merge with xen-ia64-unstable.

19 years agoMerge with xenppc-unstable.
kfraser@localhost.localdomain [Wed, 9 Aug 2006 17:04:20 +0000 (18:04 +0100)]
Merge with xenppc-unstable.

19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 9 Aug 2006 16:32:23 +0000 (10:32 -0600)]
merge with xen-unstable.hg

19 years ago[IA64] catch up new hypercall HYPERVISR_hvm_op for IPF (libxc)
awilliam@xenbuild.aw [Wed, 9 Aug 2006 16:04:43 +0000 (10:04 -0600)]
[IA64] catch up new hypercall HYPERVISR_hvm_op for IPF (libxc)

append xc_set_hvm_param for IPF

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
19 years ago[IA64] catch up new hypercall HYPERVISR_hvm_op for IPF
awilliam@xenbuild.aw [Wed, 9 Aug 2006 15:59:52 +0000 (09:59 -0600)]
[IA64] catch up new hypercall HYPERVISR_hvm_op for IPF

append HYPERVISOR_hvm_op for IPF

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 9 Aug 2006 14:34:06 +0000 (08:34 -0600)]
merge with xen-unstable.hg

19 years ago[qemu patches] Update patches for changeset 10998:bd04004865ba.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 14:05:12 +0000 (15:05 +0100)]
[qemu patches] Update patches for changeset 10998:bd04004865ba.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Add vncunused option.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 14:03:38 +0000 (15:03 +0100)]
[qemu] Add vncunused option.
If the port used for the requested display number is in use, try
additional ports until a free port is found.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[IA64] fix a fetch code bug
awilliam@xenbuild.aw [Wed, 9 Aug 2006 14:01:52 +0000 (08:01 -0600)]
[IA64] fix a fetch code bug

Fetch code may fail, if there is no corresponding tlb entry
in THASH-VTLB. This patch adds "retry mechanism" to resolve
this issue.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years agomerge
Ian.Campbell@xensource.com [Wed, 9 Aug 2006 10:29:06 +0000 (11:29 +0100)]
merge

19 years agoMake ballon and backend drivers fail gracefully if they are unable to initialize
Ian.Campbell@xensource.com [Wed, 9 Aug 2006 10:27:28 +0000 (11:27 +0100)]
Make ballon and backend drivers fail gracefully if they are unable to initialize
due to missing hypervisor support.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoFix BUG_ON on switch_mm if XENFEAT_writable_page_tables is enabled.
Ian.Campbell@xensource.com [Wed, 9 Aug 2006 10:26:11 +0000 (11:26 +0100)]
Fix BUG_ON on switch_mm if XENFEAT_writable_page_tables is enabled.

Signed-of-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[qemu patches] Update patches for changeset 10993:dc7b56b8cfb5.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 10:25:55 +0000 (11:25 +0100)]
[qemu patches] Update patches for changeset 10993:dc7b56b8cfb5.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[hvm/qemu] Add HVM buffered IO writes framework to accelerate stdvga speed.
chris@kneesaa.uk.xensource.com [Wed, 9 Aug 2006 10:25:33 +0000 (11:25 +0100)]
[hvm/qemu] Add HVM buffered IO writes framework to accelerate stdvga speed.
With this patch, win2k VMX guest boots fine on xen.

Signed-off-by: Zhu Han <zhu.han@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoBuild tools/firmware only on x86.
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Aug 2006 09:53:16 +0000 (10:53 +0100)]
Build tools/firmware only on x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN][IA64] IA64 build fixes after recent PER_CPU changes.
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Aug 2006 09:44:33 +0000 (10:44 +0100)]
[XEN][IA64] IA64 build fixes after recent PER_CPU changes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoFix the unit test to match the new way of allocating VNC ports.
emellor@leeni.uk.xensource.com [Wed, 9 Aug 2006 09:13:37 +0000 (10:13 +0100)]
Fix the unit test to match the new way of allocating VNC ports.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a couple of unit tests for the sxp parsing.
emellor@leeni.uk.xensource.com [Wed, 9 Aug 2006 09:13:36 +0000 (10:13 +0100)]
Added a couple of unit tests for the sxp parsing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix reference to buf in parsing of ocaml escapes.
emellor@leeni.uk.xensource.com [Wed, 9 Aug 2006 09:13:34 +0000 (10:13 +0100)]
Fix reference to buf in parsing of ocaml escapes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoBetter diagnosis of the failure when Xend crashes. Thanks to Hollis Blanchard
emellor@leeni.uk.xensource.com [Wed, 9 Aug 2006 08:52:43 +0000 (09:52 +0100)]
Better diagnosis of the failure when Xend crashes.  Thanks to Hollis Blanchard
for diagnosis.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LIBXC] put PowerPC loader in libxenguest, not libxenctrl
Hollis Blanchard [Wed, 9 Aug 2006 00:07:32 +0000 (19:07 -0500)]
[LIBXC] put PowerPC loader in libxenguest, not libxenctrl
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[LIBXC] remove relocated file from Makefile
Hollis Blanchard [Tue, 8 Aug 2006 23:37:46 +0000 (18:37 -0500)]
[LIBXC] remove relocated file from Makefile
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[IA64] Remove scheduler heartbeat
awilliam@xenbuild.aw [Tue, 8 Aug 2006 20:42:34 +0000 (14:42 -0600)]
[IA64] Remove scheduler heartbeat

Signed-off-by: Daniel Miles <daniel.t.miles@hp.com>
19 years ago[IA64] Virtualize dom0 lid
awilliam@xenbuild.aw [Tue, 8 Aug 2006 20:40:57 +0000 (14:40 -0600)]
[IA64] Virtualize dom0 lid

Because dom0 can't write eid/id into iosapics, lid can be virtualized.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] bug fix in ioports_deny_access
awilliam@xenbuild.aw [Tue, 8 Aug 2006 20:38:10 +0000 (14:38 -0600)]
[IA64] bug fix in ioports_deny_access

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] enable ioports_deny_access for dom0
awilliam@xenbuild.aw [Tue, 8 Aug 2006 20:36:21 +0000 (14:36 -0600)]
[IA64] enable ioports_deny_access for dom0

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] remove CONFIG_DOMAIN0_CONTIGUOUS and dom0_start
awilliam@xenbuild.aw [Tue, 8 Aug 2006 20:31:48 +0000 (14:31 -0600)]
[IA64] remove CONFIG_DOMAIN0_CONTIGUOUS and dom0_start

Remove unused build option CONFIG_DOMAIN0_CONTIGUOUS, thereby
making dom0_start obsolete.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[LIBXC] move xc_ppc_linux_build.c into a powerpc64 directory
Hollis Blanchard [Tue, 8 Aug 2006 20:11:25 +0000 (15:11 -0500)]
[LIBXC] move xc_ppc_linux_build.c into a powerpc64 directory
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[XEN] Assorted further PER_CPU- or read_mostly-ifications.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Aug 2006 14:43:54 +0000 (15:43 +0100)]
[XEN] Assorted further PER_CPU- or read_mostly-ifications.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Implement proper __read_mostly memory arrangemengt for x86.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Aug 2006 14:14:43 +0000 (15:14 +0100)]
[XEN] Implement proper __read_mostly memory arrangemengt for x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Make tracing structures and buffers explicitly PER_CPU.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Aug 2006 13:56:22 +0000 (14:56 +0100)]
[XEN] Make tracing structures and buffers explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Make multicall info explicitly PER_CPU.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Aug 2006 13:48:43 +0000 (14:48 +0100)]
[XEN] Make multicall info explicitly PER_CPU.
Also remove cacheline alignment in a few places. We leave
the common timer and schedule_data structures aligned because
they may be accessed randomly by remoted CPUs: at least we can
contain cacheline bouncing to just the offending structures.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Make per-cpu pending EOI interrupt info explicitly PER_CPU.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Aug 2006 13:29:16 +0000 (14:29 +0100)]
[XEN] Make per-cpu pending EOI interrupt info explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>